
<!-- 分享给好友组件  -->
<template>
	<view >
		<view >
			<button class="cu-btn bg-green lg round shadow-blur" style="width: 100%;" open-type="share">发送给朋友</button>			
		</view>
		<view v-if="showModal" class="cu-modal" :class="showModal?'show':''" @click="showModal = false">
			<image  style="right: 0;top: 0;width: 50%;margin-left: 20%;" src="/static/public/img/share_friends.jpg"></image>
		</view>
	</view>
</template>

<script>

	import api from 'utils/api'
	import util from '@/utils/util'

	export default {
		props: {
			shareObj: {
				type: Object,
				default: () => {}
			},
			curLocalUrl: {
				type: String,
			},
			shareShow: {
				type: String,
			},
			
		},
		watch:{
			shareObj(val,oldVal){
				this.shareObjTemp = val;
				this.initShareWx();
			},
			curLocalUrl(val,oldVal){
			},
		},
		data() {
			return {
				showModal: false,
				isInitShare: false,
				shareObjTemp: {}
			};
		},
		created() {
			this.shareObjTemp = this.shareObj;
		},
		methods: {
			initShareWx(){
				// h5页面加载时 会默认初始化分享
				let that = this;
				
			},
			onShareWX(){ //H5 分享微信好友
				let that = this;
			
				
			},
		}
	};
</script>
<style>
</style>
